package cn.com.jinhao.provider.business.mapper;

import cn.com.jinhao.hotline.commons.base.BaseMapper;
import cn.com.jinhao.provider.business.entity.WorkTerminalCache;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface WorkTerminalCacheMapper extends BaseMapper<WorkTerminalCache> {
    @Select("SELECT CALLID FROM TB_WORK_TERMINAL_CACHE WHERE OPER_CODE=#{operCode} AND DEPT_CODE=#{deptCode} ")
    List<String> selectCallIdByOperCodeAndDeptCode(String operCode, String deptCode) throws Exception;
}
